//: [Previous](@previous)

import Foundation

func incrementor(variable: inout Int) -> Int {
    variable += 1
    return variable
}

func makeIncrementor(addNumber: Int) -> ((inout Int) -> ()) {
    func incrementor(variable: inout Int) -> () {
        variable += addNumber
    }
    return incrementor
}
